export interface ctxLine {
  time: number;
  dis: number;
  x: number;
  y: number;
  r: number;
}

export interface IPoint {
  x: number;
  y: number;
  r: number;
}

export interface IBethelPoint {
  mx?: number;
  my?: number;
  color?: string;
  c1x?: number;
  c1y?: number;
  c2x?: number;
  c2y?: number;
  ex?: number;
  ey?: number;
}

export interface ITouch extends Touch {
  readonly x: number;
  readonly y: number;
}

export interface touches extends TouchList {
  item(index: number): ITouch | null;
  [index: number]: ITouch;
}

export interface UniAppTouchEvent extends TouchEvent {
  type: 'touchstart' | 'touchmove' | 'touchend';
  touches: touches;
  changedTouches: touches
}
